/*
 * File: OsTask.h
 *
 * Code generated for Interface Definition.
 *
 * Genrated author          :Insomnia
 * Tool version             :v1.0
 * Source code generated on :05-Aug-2020 15:51:57
 */
#ifndef _RTE_H_
#define _RTE_H_

#include "RTE_CAN.h"
#include "RTE_TAB.h"

extern uint32_T bottv_ms_sysRunTime;
extern uint8_T bottv_flg_SOCReady;
extern uint16_T bottv_ms_socFre;

extern uint8_T qchg_flg_BROEna;
extern uint8_T qchg_flg_QChgFlowAbStop;
extern uint8_T qchg_flg_BEMEna;
extern uint8_T BmsBusOffFlt;

extern uint8_T TESTFLG;


extern uint16_T bott_enum_MC33771_LifeCnt;


extern uint8_T Rte_UDS_BMSSts_SetVal(void);

extern uint16_T Rte_mv_CellMaxVol_GetVal(void);
extern uint16_T Rte_mv_CellMinVol_GetVal(void);
extern uint16_T Rte_mv_CellAvgVol_GetVal(void);
extern uint8_T Rte_c_CellMaxTmp_GetVal(void);
extern uint8_T Rte_c_CellMinTmp_GetVal(void);
extern uint8_T Rte_c_CellAvgTmp_GetVal(void);
extern uint32_T Rte_ma_BatCurr_GetVal(void);
extern uint32_T Rte_mv_PackVolt_GetVal(void);
extern uint32_T Rte_mv_VLink_GetVal(void);
extern uint32_T Rte_mv_LPVol_GetVal(void);
extern uint32_T Rte_mv_PLVol_GetVal(void);
extern uint8_T Rte_enum_chgPulgTmp1_GetVal(void);
extern uint8_T Rte_enum_chgPulgTmp2_GetVal(void);
extern uint8_T Rte_enum_HeatTmp1_GetVal(void);
extern uint8_T Rte_enum_HeatTmp2_GetVal(void);
extern uint16_T Rte_kohm_InsRes_GetVal(void);
extern uint16_T Rte_mv_SplyPwrVolt_GetVal(void);
extern boolean_T Rte_flg_CC2_1_GetVal(void);
extern boolean_T Rte_flg_CC2_2_GetVal(void);
extern boolean_T Rte_flg_QChgCCSts_GetVal(void);
extern uint8_T Rte_enum_SChgCcSts_GetVal(void);
extern uint8_T Rte_enum_SChgCP_GetVal(void);
extern boolean_T Rte_flg_hvil1Sts_GetVal(void);
extern boolean_T Rte_flg_QChgIgSts_GetVal(void);
extern boolean_T Rte_flg_SChgIgSts_GetVal(void);
extern boolean_T Rte_flg_IgSts_GetVal(void);
extern boolean_T Rte_flg_FinIgSts_GetVal(void);
extern boolean_T Rte_flg_rlyPowerSts_GetVal(void);
extern boolean_T Rte_flg_rlyPosSts_GetVal(void);
extern boolean_T Rte_flg_rlyNegSts_GetVal(void);
extern boolean_T Rte_flg_rlyQChgSts_GetVal(void);
extern boolean_T Rte_flg_rlyPTCSts_GetVal(void);
extern boolean_T Rte_flg_rlyPreSts_GetVal(void);
extern boolean_T Rte_ican_BMULifeCnt_GetVal(void);
extern uint8_T Rte_vcan_vcuLfieCnt_GetVal(void);
extern uint8_T Rte_vcan_fdcLifeCnt_GetVal(void);
extern uint8_T Rte_vcan_obcLifeCnt_GetVal(void);
extern uint8_T Rte_vcan_obcLifeCnt1_GetVal(void);
extern boolean_T Rte_flg_CANBusOff_GetVal(void);
extern uint32_T Rte_mv_CellVoltSum_GetVal(void);
extern uint8_T Rte_enum_cellTempSmp_GetVal(void);
extern uint8_T  Rte_enum_cellVoltSmp_GetVal(void);
extern boolean_T Rte_flg_SmpChipSpiFlt_GetVal(void);
extern uint8_T Rte_vcan_HVPwrCmd_GetVal(void);


extern uint16_T Rte_ah_BatCap_GetVal(void);
extern uint16_T Rte_pct_SOH_GetVal(void);
extern uint16_T Rte_ms_SOCFre_GetVal(void);
extern uint16_T Rte_pct_InitSOC_GetVal(void);
extern int16_T Rte_pct_DeltSOC_GetVal(void);
extern uint16_T Rte_pct_SetSOC_GetVal(void);
extern uint32_T Rte_mas_set_GetVal(void);
extern uint8_T Rte_flg_UpdateCap_GetVal(void);
extern boolean_T Rte_flg_MaiRlySts_GetVal(void);
extern uint8_T Rte_obc_FltSts_GetVal(void);

extern uint8_T Rte_obc_ChgSts_GetVal(void);
extern uint8_T Rte_vcu_ChgPmt_GetVal(void);
extern uint8_T Rte_flg_debugDccur_GetVal(void);
extern uint8_T Rte_enum_OcvAlwSts_GetVal(void);
extern uint8_T Rte_enum_BalAlwSts_GetVal(void);
extern uint32_T Rte_mv_PtcVol_GetVal(void);
extern uint16_T Rte_CANRx_OBC_ChgCurr_GetVal(void);

extern uint8_T rte_flg_clrBalTime_GetVal(void);
extern uint8_T rte_flg_balanceTempFlt_GetVal(void);
extern uint8_T rte_flg_sampleFinish_GetVal(void);
extern uint8_T rte_enum_balCellNum_GetVal(void);
extern uint32_T rte_ms_sysRunTime_GetVal(void);
extern uint8_T rte_flg_ACC_ClearFault_GetVal(void);
extern boolean_T Rte_flg_UDS14_GetVal(void);
extern void Rte_flg_UDS14_Clear(void);

extern void rte_soxTask(void);
extern void rte_faultTask(void);
extern void rte_pwrTask(void);
extern void rte_qchgFlowTask(void);


#endif

/* File trailer for generated code.*/
